package com.yyb.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;


@Data
@Schema(title ="SysDeptAddDTO" ,description = "添加部门的入参模型")
public class SysDeptAddDTO implements Serializable {
    /**
     * 父部门id
     */
    @Schema(title = "父部门id")
    @NotNull(message = "父部门id不能为空")
    private Long parentId;

    /**
     * 部门名称
     */
    @Schema(title = "部门名称")
    @NotNull(message = "部门名称不能为空")
    private String deptName;

    /**
     * 显示顺序
     */
    @Schema(title = "显示顺序")
    @NotNull(message = "显示顺序不能为空")
    private Integer orderNum;

    /**
     * 负责人编号
     */
    @Schema(title = "负责人编号")
    private Long leaderId;

    /**
     * 负责人姓名
     */
    @Schema(title = "负责人姓名")
    private String leaderName;

    /**
     * 联系电话
     */
    @Schema(title = "联系电话")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(title = "邮箱")
    private String email;

    /**
     * 部门状态（0正常 1停用）
     */
    @Schema(title = "部门状态")
    @NotNull(message = "部门状态不能为空")
    private Integer status;

    private static final long serialVersionUID = 1L;
}
